<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<xsl:apply-templates select="entityClass" />
	</xsl:template>


	<xsl:template match="entityClasss">
		public class <xsl:value-of select="//entity" /> {

		<xsl:for-each select="//entityClass/attribute">
			private <xsl:value-of select="//entityClass/attribute/attributeType" /> <xsl:value-of select="//entityClass/attribute/attributeName" /> ;
			
		</xsl:for-each>

		<xsl:for-each select="//entityClass/attribute">
			
			public <xsl:value-of select="//entityClass/attribute/attributeName" /> get<xsl:value-of select="//entityClass/attribute/attributeName" />(){
				return this.<xsl:value-of select="//entityClass/attribute/attributeName" />;
			}
			
			public void set<xsl:value-of select="//entityClass/attribute/attributeName" />(<xsl:value-of select="//entityClass/attribute/attributeType" /> <xsl:value-of select="//entityClass/attribute/attributeName" />)
			{	this.<xsl:value-of select="//entityClass/attribute/attributeName" />=<xsl:value-of select="//entityClass/attribute/attributeName" />;
			}
		</xsl:for-each>

		}
	</xsl:template>

</xsl:stylesheet>